package cool.mor.entity;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * @author Ivan
 * implements Serializable     实现序列化方式可以使对象在流中传输，可进行存储
 */
@Data
@Entity
@Table(name = "attendance")
public class Attendance implements Serializable  {
    @Id
    @Column(name = "id")
    private String id;
    @Column(name = "employee_id")
    private String employeeId;
    @Column(name = "morning_attendance_type")
    private String morningAttendanceType;
    @Column(name = "morning_attendance_time")
    private String morningAttendanceTime;
    @Column(name = "afternoon_attendance_type")
    private String afternoonAttendanceType;
    @Column(name = "afternoon_attendance_time")
    private String afternoonAttendanceTime;
    @Column(name = "today_type")
    private String todayType;
}